<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{layout :: css(~{::title},~{::link})}">
    <link href="/css/kuang.css" type="text/css" rel="stylesheet" />
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css">
    <title>商品管理界面</title>
</head>
<body>
<div th:insert="~{layout::sidebar(activeURI='two')}"></div>

<div class="right">
    <div th:insert="~{GoodsTop::top(activeURI='one2')}"></div>
    <div class="tablename">商品大类管理</div>
    <div class="page-wrap w">
        <div class="panel">
            <div class="panel-title">大类</div>
            <div class="panel-body">
                <div class="address-item" th:each="cate:${category}" th:id="${cate.categoryid}">
                    <div class="address-title">
                        [[${cate.name}]]
                    </div>
                    <div class="address-detail" >
                   <img th:src="${cate.descn}" style="width: 80px;height: 80px">
                    </div>
                    <div class="address-operator">
                        <span class="link" ><a href="javascript:void(0)">编辑</a></span>
                        <span class="linkmmmm" ><a href="javascript:void(0)">下架</a></span>
                    </div>

                </div>
                <div class="address-item">
                    <div class="address-add">
                        <i class="fa fa-plus"></i>
                        <div class="link-text"><a href="/newcate">添加新类</a></div>
                    </div>
                </div>
            </div>
        </div>
    </div>

<!--    <table>-->
<!--        <thead>-->
<!--        <tr>-->
<!--            <th>商品ID</th>-->
<!--            <th>商品类型</th>-->
<!--            <th>名称</th>-->
<!--            <th>库存数量</th>-->
<!--            <th>图片</th>-->
<!--            <th>修改</th>-->
<!--        </tr>-->
<!--        </thead>-->
<!--        <tbody>-->

<!--        <tr th:each="product:${Product}">-->
<!--            <form th:action="update1" method="post">-->
<!--                <td><input th:value="${product.productid}" name ="productid"></td> &lt;!&ndash; 商品id &ndash;&gt;-->
<!--                <td><input th:value="${product.category}"  name="category"></td> &lt;!&ndash; 商品类型 &ndash;&gt;-->
<!--                <td><input th:value="${product.name}" name="name"></td> &lt;!&ndash; 名称 &ndash;&gt;-->
<!--                <td><input th:value="${product.sum}" name="sum"></td> &lt;!&ndash; 库存数量 &ndash;&gt;-->
<!--                <td th:utext =${product.descn}></td> &lt;!&ndash; 图片 &ndash;&gt;-->
<!--                <td><input type="submit" value="修改"></td>-->
<!--            </form>-->
<!--        </tr>-->
<!--        </tbody>-->
<!--    </table>-->


</div>
<div id="submitForm"></div>
</body>
<script type="text/javascript" charset="UTF-8" src="js/cate.js"></script>
</html>